package com.zhoukun.cloud.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhoukun.cloud.CommentRest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.math.BigDecimal;

/**
 * @author zhoukun 86547462@qq.com
 * @version 1.0
 * @date 2020/11/2 22:07
 * 调用用户微服务，扣钱
 */
@FeignClient(value = "seara-account-server")
public interface AccountService {

    @GetMapping("/account/up/{userid}/{money}")
    public CommentRest up(@PathVariable("userid") Long userid, @PathVariable("money") BigDecimal money);

}
